.statusbar {
  // $statusbar-bg: darken($brand-pink, 55%);

  display: flex;
  align-items: center;
  background: $statusbar-bg;
  color: rgba($statusbar-text, 0.57);
  min-height: $statusbar-height;
  height: $statusbar-height;
  line-height: $statusbar-height;
  font-size: 0.85rem;
  padding: 0 $gutter-h;
  overflow: hidden;
  > .col {
    display: flex;
  }
  .badge {
    border-radius: 1.8rem;
  }
  .btn {
    color: $statusbar-text;
    height: $statusbar-height * 0.8;
    line-height: $statusbar-height * 0.8;
    transition: background 0.15s ease-in-out;
    min-width: 0;
    margin-left: 0.15rem;
    margin-right: 0.15rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    &:hover {
      background: rgba($statusbar-text, 0.1);
    }
    &.btn-primary {
      background: rgba($theme-base, 0.1);
      // color: rgba(black, 0.87);
      transition: background 0.15s ease-in-out;
      &:hover {
        background: rgba($theme-base, 0.15);
      }
      .badge {
        font-size: 85%;
        margin-left: 0;
        padding: 0 0.3rem;
        background: rgba($theme-base, 0.2);
      }
      .material-icons {
        font-size: 14px;
      }
    }
    &.error, &.error:hover {
      background: rgba($theme-base, 0.1);
      cursor: not-allowed;
      pointer-events: all !important;
      opacity: 0.5;
    }
    .material-icons {
      font-size: 16px;
    }
  }
  a {
    color: $statusbar-text;
  }
  span.row {
    .material-icons {
      font-size: 16px;
      margin-right: $gutter-h * 0.5;
    }
  }

  // Connection Status
  // ---------------------------
  .connection-button,
  .connection-button > .btn {
    height: $statusbar-height;
    line-height: $statusbar-height;
    margin: -$gutter-h;
    padding: 0 $gutter-h;
    flex: 1 1 100%;
    overflow: hidden;
  }
  .connection-name {
    font-size: 0.85rem;
  }
  .connection-button {
    position: relative;
    .material-icons {
      font-size: 16px;
    }
    > .btn {
      text-align: left;
      border-radius: 0;
      --trigger-effect: none;
    }
    .badge {
      min-width: fit-content;
    }
    x-menu {
      width: 286px;
    }
  }

  // No Data
  // -----------------------
  .empty {
    padding: 0 $gutter-h;
  }

  // Download Results
  // -----------------------------
  .download-results {
    .btn-link {
      background: rgba($theme-base, 0.1);
      color: $text-dark;
      box-shadow: inset 0 0 0 1px rgba($theme-base, 0.05);
      height: $statusbar-height * 0.8;
      line-height: $statusbar-height * 0.8;
      margin: 0;
    }
    .material-icons {
      color: $text-dark;
      font-size: 20px;
    }
  }

  // Results Select
  // -------------------------
  .result-selector {
    margin-right: $gutter-h;
  }
  .select-wrap {
    box-shadow: none;
    background: rgba($statusbar-text, 0.1);
    &:hover {
      background: rgba($statusbar-text, 0.15);
    }
  }
  select {
    color: $statusbar-text;
    height: $statusbar-height * 0.8;
    line-height: $statusbar-height * 0.8;
  }

  // Query Status
  // ----------------------------
  .statusbar-item {
    display: inline-flex;
    align-items: center;
    padding: 0 $gutter-h;
    line-height: $statusbar-height;
    .material-icons {
      font-size: 16px;
      line-height: $statusbar-height;
      margin-right: 0.25rem;
      opacity: 0.65;
      width: 16px;
    }
    &.error {
      color: $text-dark;
      .material-icons {
        color: $theme-base;
      }
    }
  }
  .row-counts {
    .truncated-rows, .records {
      margin-left: $gutter-h * 0.5;
    }
  }
}
